const schedule = require('node-schedule');
const logger = require('../utils/console-logger')

const SubFunc = require('../core/SubFunc')

const  scheduleCronstyle = async ()=>{

  logger.info('订阅定时更新服务启动.');
  //每6小时执行一次:
  schedule.scheduleJob('0 0 0/6 * * *', SubFunc.action);

}

module.exports = {
  scheduleCronstyle
}